package com.eduplatform.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eduplatform.entity.TeacherSubject;

import java.util.List;

public interface TeacherSubjectService extends IService<TeacherSubject> {

    /**
     * 根据教师ID获取学科ID列表
     */
    List<Long> getSubjectIdsByTeacherId(Long teacherId);

    /**
     * 保存教师的学科关联
     */
    boolean saveTeacherSubjects(Long teacherId, List<Long> subjectIds);
}